<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>wickr-crypto-c: src/wickrcrypto/include/wickrcrypto/protocol.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">wickr-crypto-c
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_92a70b6cc7e213c660915fdf1190028f.html">wickrcrypto</a></li><li class="navelem"><a class="el" href="dir_db4377ef08cfba82f5e7141624102360.html">include</a></li><li class="navelem"><a class="el" href="dir_2adb4122f2f58e588d09641dee9865e2.html">wickrcrypto</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">protocol.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright © 2012-2018 Wickr Inc.  All rights reserved.</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * This code is being released for EDUCATIONAL, ACADEMIC, AND CODE REVIEW PURPOSES</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * ONLY.  COMMERCIAL USE OF THE CODE IS EXPRESSLY PROHIBITED.  For additional details,</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * please see LICENSE</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * THE CODE IS MADE AVAILABLE &quot;AS-IS&quot; AND WITHOUT ANY EXPRESS OR</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * IMPLIED GUARANTEES AS TO FITNESS, MERCHANTABILITY, NON-</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * INFRINGEMENT OR OTHERWISE. IT IS NOT BEING PROVIDED IN TRADE BUT ON</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * A VOLUNTARY BASIS ON BEHALF OF THE AUTHOR’S PART FOR THE BENEFIT</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * OF THE LICENSEE AND IS NOT MADE AVAILABLE FOR CONSUMER USE OR ANY</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> * OTHER USE OUTSIDE THE TERMS OF THIS LICENSE. ANYONE ACCESSING THE</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * CODE SHOULD HAVE THE REQUISITE EXPERTISE TO SECURE THEIR SYSTEM</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * AND DEVICES AND TO ACCESS AND USE THE CODE FOR REVIEW PURPOSES</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * ONLY. LICENSEE BEARS THE RISK OF ACCESSING AND USING THE CODE. IN</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * PARTICULAR, AUTHOR BEARS NO LIABILITY FOR ANY INTERFERENCE WITH OR</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * ADVERSE EFFECT THAT MAY OCCUR AS A RESULT OF THE LICENSEE</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * ACCESSING AND/OR USING THE CODE ON LICENSEE’S SYSTEM.</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#ifndef protocol_h</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#define protocol_h</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#include &lt;stdlib.h&gt;</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &quot;node.h&quot;</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &quot;key_exchange.h&quot;</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#include &quot;payload.h&quot;</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="group__wickr__protocol.html#gad269883d0b8b26c4fa52da595ef5ddf7">   42</a></span>&#160;<span class="preprocessor">#define OLDEST_PACKET_VERSION 2</span></div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="group__wickr__protocol.html#ga89ff9f93c5494db53d3ff27353989862">   48</a></span>&#160;<span class="preprocessor">#define CURRENT_PACKET_VERSION 4</span></div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> {</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    E_SUCCESS,</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    ERROR_INVALID_INPUT,</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    ERROR_NODE_NOT_FOUND,</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    ERROR_CORRUPT_PACKET,</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    ERROR_KEY_EXCHANGE_FAILED,</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    ERROR_MAC_INVALID</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;} wickr_decode_error;</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> {</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    PACKET_SIGNATURE_UNKNOWN,</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    PACKET_SIGNATURE_VALID,</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    PACKET_SIGNATURE_INVALID</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;} wickr_packet_signature_status;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<a class="code" href="structwickr__key__exchange.html">wickr_key_exchange_t</a> *<a class="code" href="group__wickr__protocol.html#gac21e7b7fda1612923d83e7e75166209c">wickr_key_exchange_create_with_packet_key</a>(<span class="keyword">const</span> <a class="code" href="structwickr__crypto__engine.html">wickr_crypto_engine_t</a> *engine,</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;                                                                <span class="keyword">const</span> <a class="code" href="structwickr__identity__chain.html">wickr_identity_chain_t</a> *sender,</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;                                                                <span class="keyword">const</span> <a class="code" href="structwickr__node.html">wickr_node_t</a> *receiver,</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;                                                                <a class="code" href="structwickr__ec__key.html">wickr_ec_key_t</a> *packet_exchange_key,</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;                                                                <span class="keyword">const</span> <a class="code" href="structwickr__cipher__key.html">wickr_cipher_key_t</a> *packet_key,</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;                                                                <span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *psk,</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;                                                                uint8_t version);</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;<a class="code" href="structwickr__key__exchange.html">wickr_key_exchange_t</a> *<a class="code" href="group__wickr__protocol.html#ga2b967bbdd161d8e37d19c4ab9621771b">wickr_key_exchange_create_with_data</a>(<span class="keyword">const</span> <a class="code" href="structwickr__crypto__engine.html">wickr_crypto_engine_t</a> *engine,</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;                                                          <span class="keyword">const</span> <a class="code" href="structwickr__identity__chain.html">wickr_identity_chain_t</a> *sender,</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;                                                          <span class="keyword">const</span> <a class="code" href="structwickr__node.html">wickr_node_t</a> *receiver,</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;                                                          <a class="code" href="structwickr__ec__key.html">wickr_ec_key_t</a> *packet_exchange_key,</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;                                                          <span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *data_to_wrap,</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;                                                          <a class="code" href="structwickr__cipher.html">wickr_cipher_t</a> exchange_cipher,</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;                                                          <span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *psk,</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;                                                          uint8_t version);</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;<a class="code" href="structwickr__cipher__key.html">wickr_cipher_key_t</a> *wickr_key_exchange_derive_packet_key(<span class="keyword">const</span> <a class="code" href="structwickr__crypto__engine.html">wickr_crypto_engine_t</a> *engine,</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;                                                         <span class="keyword">const</span> <a class="code" href="structwickr__identity__chain.html">wickr_identity_chain_t</a> *sender,</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;                                                         <span class="keyword">const</span> <a class="code" href="structwickr__node.html">wickr_node_t</a> *receiver,</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;                                                         <a class="code" href="structwickr__ec__key.html">wickr_ec_key_t</a> *packet_exchange_key,</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;                                                         <span class="keyword">const</span> <a class="code" href="structwickr__key__exchange.html">wickr_key_exchange_t</a> *exchange,</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;                                                         <span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *psk,</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;                                                         uint8_t version);</div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;</div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;<a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *wickr_key_exchange_derive_data(<span class="keyword">const</span> <a class="code" href="structwickr__crypto__engine.html">wickr_crypto_engine_t</a> *engine,</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;                                               <span class="keyword">const</span> <a class="code" href="structwickr__identity__chain.html">wickr_identity_chain_t</a> *sender,</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;                                               <span class="keyword">const</span> <a class="code" href="structwickr__node.html">wickr_node_t</a> *receiver,</div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;                                               <a class="code" href="structwickr__ec__key.html">wickr_ec_key_t</a> *packet_exchange_key,</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;                                               <span class="keyword">const</span> <a class="code" href="structwickr__key__exchange.html">wickr_key_exchange_t</a> *exchange,</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;                                               <span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *psk,</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;                                               uint8_t version);</div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;</div><div class="line"><a name="l00188"></a><span class="lineno"><a class="line" href="structwickr__packet.html">  188</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structwickr__packet.html">wickr_packet</a> {</div><div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="structwickr__packet.html#a35c17c926c267a603e810b88961c2bf3">  189</a></span>&#160;    uint8_t <a class="code" href="structwickr__packet.html#a35c17c926c267a603e810b88961c2bf3">version</a>;</div><div class="line"><a name="l00190"></a><span class="lineno"><a class="line" href="structwickr__packet.html#a4d17d017c9d0fbb6e748a7ed935e5512">  190</a></span>&#160;    <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *<a class="code" href="structwickr__packet.html#a4d17d017c9d0fbb6e748a7ed935e5512">content</a>;</div><div class="line"><a name="l00191"></a><span class="lineno"><a class="line" href="structwickr__packet.html#a8b5e9a4eed6f133ffedd1aa9178b5567">  191</a></span>&#160;    <a class="code" href="structwickr__ecdsa__result.html">wickr_ecdsa_result_t</a> *<a class="code" href="structwickr__packet.html#a8b5e9a4eed6f133ffedd1aa9178b5567">signature</a>;</div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;};</div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;</div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structwickr__packet.html">wickr_packet</a> <a class="code" href="structwickr__packet.html">wickr_packet_t</a>;</div><div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;</div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;<a class="code" href="structwickr__packet.html">wickr_packet_t</a> *<a class="code" href="group__wickr__protocol.html#gac952913ddaf848d2def181cd55b30883">wickr_packet_create</a>(uint8_t <a class="code" href="structwickr__packet.html#a35c17c926c267a603e810b88961c2bf3">version</a>, <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *<a class="code" href="structwickr__packet.html#a4d17d017c9d0fbb6e748a7ed935e5512">content</a>, <a class="code" href="structwickr__ecdsa__result.html">wickr_ecdsa_result_t</a> *<a class="code" href="structwickr__packet.html#a8b5e9a4eed6f133ffedd1aa9178b5567">signature</a>);</div><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;</div><div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;<a class="code" href="structwickr__packet.html">wickr_packet_t</a> *<a class="code" href="group__wickr__protocol.html#ga3427a40815c9f65a78516405d1b88072">wickr_packet_create_from_buffer</a>(<span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *buffer);</div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;</div><div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;<a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *<a class="code" href="group__wickr__protocol.html#gaa983fe863635b69d69d6d86d01443ecf">wickr_packet_serialize</a>(<span class="keyword">const</span> <a class="code" href="structwickr__packet.html">wickr_packet_t</a> *packet);</div><div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;</div><div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;<a class="code" href="structwickr__packet.html">wickr_packet_t</a> *<a class="code" href="group__wickr__protocol.html#ga0c95ad86819bacf98c11115d748039db">wickr_packet_copy</a>(<span class="keyword">const</span> <a class="code" href="structwickr__packet.html">wickr_packet_t</a> *source);</div><div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;</div><div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__wickr__protocol.html#gab15d7556ad2806aa823ec2d3e3bf5a46">wickr_packet_destroy</a>(<a class="code" href="structwickr__packet.html">wickr_packet_t</a> **packet);</div><div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;</div><div class="line"><a name="l00266"></a><span class="lineno"><a class="line" href="structwickr__parse__result.html">  266</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structwickr__parse__result.html">wickr_parse_result</a> {</div><div class="line"><a name="l00267"></a><span class="lineno"><a class="line" href="structwickr__parse__result.html#a69a3ee332921b4fdbc0e07dbfa74a8ed">  267</a></span>&#160;    wickr_decode_error <a class="code" href="structwickr__parse__result.html#a69a3ee332921b4fdbc0e07dbfa74a8ed">err</a>;</div><div class="line"><a name="l00268"></a><span class="lineno"><a class="line" href="structwickr__parse__result.html#a989166b5471898853f03b9e9c58f69c0">  268</a></span>&#160;    wickr_packet_signature_status <a class="code" href="structwickr__parse__result.html#a989166b5471898853f03b9e9c58f69c0">signature_status</a>;</div><div class="line"><a name="l00269"></a><span class="lineno"><a class="line" href="structwickr__parse__result.html#aa35f9328b675b02426fd190ffcd45402">  269</a></span>&#160;    <a class="code" href="structwickr__key__exchange__set.html">wickr_key_exchange_set_t</a> *<a class="code" href="structwickr__parse__result.html#aa35f9328b675b02426fd190ffcd45402">key_exchange_set</a>;</div><div class="line"><a name="l00270"></a><span class="lineno"><a class="line" href="structwickr__parse__result.html#ab33e5d00121c229280bbee814ca7ef5a">  270</a></span>&#160;    <a class="code" href="structwickr__key__exchange.html">wickr_key_exchange_t</a> *<a class="code" href="structwickr__parse__result.html#ab33e5d00121c229280bbee814ca7ef5a">key_exchange</a>;</div><div class="line"><a name="l00271"></a><span class="lineno"><a class="line" href="structwickr__parse__result.html#a584d3b94e032f09188ee4006c067c180">  271</a></span>&#160;    <a class="code" href="structwickr__cipher__result.html">wickr_cipher_result_t</a> *<a class="code" href="structwickr__parse__result.html#a584d3b94e032f09188ee4006c067c180">enc_payload</a>;</div><div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;};</div><div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;</div><div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structwickr__parse__result.html">wickr_parse_result</a> <a class="code" href="structwickr__parse__result.html">wickr_parse_result_t</a>;</div><div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;</div><div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;<a class="code" href="structwickr__parse__result.html">wickr_parse_result_t</a> *<a class="code" href="group__wickr__protocol.html#gac2673bcfeae2f8d693e523809bb6bb30">wickr_parse_result_create_failure</a>(wickr_packet_signature_status <a class="code" href="structwickr__parse__result.html#a989166b5471898853f03b9e9c58f69c0">signature_status</a>,</div><div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;                                                        wickr_decode_error error);</div><div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;</div><div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;<a class="code" href="structwickr__parse__result.html">wickr_parse_result_t</a> *<a class="code" href="group__wickr__protocol.html#ga7bd98225a92620e1aa5940cf59fdbedf">wickr_parse_result_create_success</a>(<a class="code" href="structwickr__key__exchange__set.html">wickr_key_exchange_set_t</a> *<a class="code" href="structwickr__parse__result.html#aa35f9328b675b02426fd190ffcd45402">key_exchange_set</a>,</div><div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;                                                        <a class="code" href="structwickr__key__exchange.html">wickr_key_exchange_t</a> *<a class="code" href="structwickr__parse__result.html#ab33e5d00121c229280bbee814ca7ef5a">key_exchange</a>,</div><div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;                                                        <a class="code" href="structwickr__cipher__result.html">wickr_cipher_result_t</a> *<a class="code" href="structwickr__parse__result.html#a584d3b94e032f09188ee4006c067c180">enc_payload</a>);</div><div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;</div><div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;<a class="code" href="structwickr__parse__result.html">wickr_parse_result_t</a> *<a class="code" href="group__wickr__protocol.html#ga1671066ddc19b38ed05d4460d5a96706">wickr_parse_result_copy</a>(<span class="keyword">const</span> <a class="code" href="structwickr__parse__result.html">wickr_parse_result_t</a> *source);</div><div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;</div><div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__wickr__protocol.html#ga706d39419c8991f417f37f556cee8df9">wickr_parse_result_destroy</a>(<a class="code" href="structwickr__parse__result.html">wickr_parse_result_t</a> **result);</div><div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;</div><div class="line"><a name="l00334"></a><span class="lineno"><a class="line" href="structwickr__decode__result.html">  334</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structwickr__decode__result.html">wickr_decode_result</a> {</div><div class="line"><a name="l00335"></a><span class="lineno"><a class="line" href="structwickr__decode__result.html#a63449a59c8a8bab451f5ab555be7895d">  335</a></span>&#160;    wickr_decode_error <a class="code" href="structwickr__decode__result.html#a63449a59c8a8bab451f5ab555be7895d">err</a>;</div><div class="line"><a name="l00336"></a><span class="lineno"><a class="line" href="structwickr__decode__result.html#aed31d598b49bf696f286d673246d8b31">  336</a></span>&#160;    <a class="code" href="structwickr__cipher__key.html">wickr_cipher_key_t</a> *<a class="code" href="structwickr__decode__result.html#aed31d598b49bf696f286d673246d8b31">payload_key</a>;</div><div class="line"><a name="l00337"></a><span class="lineno"><a class="line" href="structwickr__decode__result.html#a0c6e2140859e7d8ad113f1e7ebd95ad4">  337</a></span>&#160;    <a class="code" href="structwickr__payload.html">wickr_payload_t</a> *<a class="code" href="structwickr__decode__result.html#a0c6e2140859e7d8ad113f1e7ebd95ad4">decrypted_payload</a>;</div><div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;};</div><div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;</div><div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structwickr__decode__result.html">wickr_decode_result</a> <a class="code" href="structwickr__decode__result.html">wickr_decode_result_t</a>;</div><div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;</div><div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;<a class="code" href="structwickr__decode__result.html">wickr_decode_result_t</a> *<a class="code" href="group__wickr__protocol.html#ga2bd6f49ed993d2290aaafa514eba43ed">wickr_decode_result_create_failure</a>(wickr_decode_error decode_error);</div><div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;</div><div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;<a class="code" href="structwickr__decode__result.html">wickr_decode_result_t</a> *<a class="code" href="group__wickr__protocol.html#ga633aaf4cb6159be0110401f06dae458c">wickr_decode_result_create_success</a>(<a class="code" href="structwickr__payload.html">wickr_payload_t</a> *<a class="code" href="structwickr__decode__result.html#a0c6e2140859e7d8ad113f1e7ebd95ad4">decrypted_payload</a>,</div><div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;                                                          <a class="code" href="structwickr__cipher__key.html">wickr_cipher_key_t</a> *<a class="code" href="structwickr__decode__result.html#aed31d598b49bf696f286d673246d8b31">payload_key</a>);</div><div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;</div><div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;<a class="code" href="structwickr__decode__result.html">wickr_decode_result_t</a> *<a class="code" href="group__wickr__protocol.html#ga36183bf96372661f890aefbe388bd32a">wickr_decode_result_copy</a>(<span class="keyword">const</span> <a class="code" href="structwickr__decode__result.html">wickr_decode_result_t</a> *result);</div><div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;</div><div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__wickr__protocol.html#ga94154ab44a6c2e9b97a115e37416efe1">wickr_decode_result_destroy</a>(<a class="code" href="structwickr__decode__result.html">wickr_decode_result_t</a> **result);</div><div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;</div><div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;<a class="code" href="structwickr__packet.html">wickr_packet_t</a> *<a class="code" href="group__wickr__protocol.html#gaf34d8082df52a7ade2fea54eea65d342">wickr_packet_create_from_components</a>(<span class="keyword">const</span> <a class="code" href="structwickr__crypto__engine.html">wickr_crypto_engine_t</a> *engine,</div><div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;                                                    <span class="keyword">const</span> <a class="code" href="structwickr__cipher__key.html">wickr_cipher_key_t</a> *header_key,</div><div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;                                                    <span class="keyword">const</span> <a class="code" href="structwickr__cipher__key.html">wickr_cipher_key_t</a> *<a class="code" href="structwickr__decode__result.html#aed31d598b49bf696f286d673246d8b31">payload_key</a>,</div><div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;                                                    <a class="code" href="structwickr__ec__key.html">wickr_ec_key_t</a> *exchange_key,</div><div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;                                                    <span class="keyword">const</span> <a class="code" href="structwickr__payload.html">wickr_payload_t</a> *payload,</div><div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;                                                    <span class="keyword">const</span> wickr_node_array_t *recipients,</div><div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;                                                    <span class="keyword">const</span> <a class="code" href="structwickr__identity__chain.html">wickr_identity_chain_t</a> *sender_signing_identity,</div><div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;                                                    uint8_t version);</div><div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;</div><div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;<span class="keyword">typedef</span> <a class="code" href="structwickr__cipher__key.html">wickr_cipher_key_t</a> *(*wickr_header_keygen_func)(<span class="keyword">const</span> <a class="code" href="structwickr__crypto__engine.html">wickr_crypto_engine_t</a> engine, <a class="code" href="structwickr__cipher.html">wickr_cipher_t</a> cipher, <span class="keyword">const</span> <a class="code" href="structwickr__identity__chain.html">wickr_identity_chain_t</a> *id_chain);</div><div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;</div><div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;<a class="code" href="structwickr__parse__result.html">wickr_parse_result_t</a> *<a class="code" href="group__wickr__protocol.html#ga1654ef299f9189b27e5e58485f1ffcf5">wickr_parse_result_from_packet</a>(<span class="keyword">const</span> <a class="code" href="structwickr__crypto__engine.html">wickr_crypto_engine_t</a> *engine,</div><div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;                                                     <span class="keyword">const</span> <a class="code" href="structwickr__packet.html">wickr_packet_t</a> *packet,</div><div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160;                                                     <span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *receiver_node_id,</div><div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160;                                                     wickr_header_keygen_func header_keygen_func,</div><div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;                                                     <span class="keyword">const</span> <a class="code" href="structwickr__identity__chain.html">wickr_identity_chain_t</a> *sender_signing_identity);</div><div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;</div><div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160;<a class="code" href="structwickr__decode__result.html">wickr_decode_result_t</a> *<a class="code" href="group__wickr__protocol.html#ga32d9da2e10d1d653b2ac894d50aaedb0">wickr_decode_result_from_parse_result</a>(<span class="keyword">const</span> <a class="code" href="structwickr__packet.html">wickr_packet_t</a> *packet,</div><div class="line"><a name="l00456"></a><span class="lineno">  456</span>&#160;                                                             <span class="keyword">const</span> <a class="code" href="structwickr__crypto__engine.html">wickr_crypto_engine_t</a> *engine,</div><div class="line"><a name="l00457"></a><span class="lineno">  457</span>&#160;                                                             <span class="keyword">const</span> <a class="code" href="structwickr__parse__result.html">wickr_parse_result_t</a> *parse_result,</div><div class="line"><a name="l00458"></a><span class="lineno">  458</span>&#160;                                                             <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *receiver_dev_id,</div><div class="line"><a name="l00459"></a><span class="lineno">  459</span>&#160;                                                             <a class="code" href="structwickr__ec__key.html">wickr_ec_key_t</a> *receiver_decode_key,</div><div class="line"><a name="l00460"></a><span class="lineno">  460</span>&#160;                                                             <a class="code" href="structwickr__identity__chain.html">wickr_identity_chain_t</a> *receiver_signing_identity,</div><div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160;                                                             <span class="keyword">const</span> <a class="code" href="structwickr__identity__chain.html">wickr_identity_chain_t</a> *sender_signing_identity);</div><div class="line"><a name="l00462"></a><span class="lineno">  462</span>&#160;</div><div class="line"><a name="l00463"></a><span class="lineno">  463</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00464"></a><span class="lineno">  464</span>&#160;}</div><div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00466"></a><span class="lineno">  466</span>&#160;</div><div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* protocol_h */</span><span class="preprocessor"></span></div><div class="ttc" id="structwickr__parse__result_html_aa35f9328b675b02426fd190ffcd45402"><div class="ttname"><a href="structwickr__parse__result.html#aa35f9328b675b02426fd190ffcd45402">wickr_parse_result::key_exchange_set</a></div><div class="ttdeci">wickr_key_exchange_set_t * key_exchange_set</div><div class="ttdef"><b>Definition:</b> protocol.h:269</div></div>
<div class="ttc" id="group__wickr__protocol_html_gac952913ddaf848d2def181cd55b30883"><div class="ttname"><a href="group__wickr__protocol.html#gac952913ddaf848d2def181cd55b30883">wickr_packet_create</a></div><div class="ttdeci">wickr_packet_t * wickr_packet_create(uint8_t version, wickr_buffer_t *content, wickr_ecdsa_result_t *signature)</div></div>
<div class="ttc" id="structwickr__decode__result_html"><div class="ttname"><a href="structwickr__decode__result.html">wickr_decode_result</a></div><div class="ttdoc">a packet decoding result</div><div class="ttdef"><b>Definition:</b> protocol.h:334</div></div>
<div class="ttc" id="group__wickr__protocol_html_ga7bd98225a92620e1aa5940cf59fdbedf"><div class="ttname"><a href="group__wickr__protocol.html#ga7bd98225a92620e1aa5940cf59fdbedf">wickr_parse_result_create_success</a></div><div class="ttdeci">wickr_parse_result_t * wickr_parse_result_create_success(wickr_key_exchange_set_t *key_exchange_set, wickr_key_exchange_t *key_exchange, wickr_cipher_result_t *enc_payload)</div></div>
<div class="ttc" id="structwickr__decode__result_html_a63449a59c8a8bab451f5ab555be7895d"><div class="ttname"><a href="structwickr__decode__result.html#a63449a59c8a8bab451f5ab555be7895d">wickr_decode_result::err</a></div><div class="ttdeci">wickr_decode_error err</div><div class="ttdef"><b>Definition:</b> protocol.h:335</div></div>
<div class="ttc" id="structwickr__ec__key_html"><div class="ttname"><a href="structwickr__ec__key.html">wickr_ec_key</a></div><div class="ttdoc">Representation of public and private Elliptic Curve Keypair information as buffers.</div><div class="ttdef"><b>Definition:</b> eckey.h:90</div></div>
<div class="ttc" id="group__wickr__protocol_html_gac21e7b7fda1612923d83e7e75166209c"><div class="ttname"><a href="group__wickr__protocol.html#gac21e7b7fda1612923d83e7e75166209c">wickr_key_exchange_create_with_packet_key</a></div><div class="ttdeci">wickr_key_exchange_t * wickr_key_exchange_create_with_packet_key(const wickr_crypto_engine_t *engine, const wickr_identity_chain_t *sender, const wickr_node_t *receiver, wickr_ec_key_t *packet_exchange_key, const wickr_cipher_key_t *packet_key, const wickr_buffer_t *psk, uint8_t version)</div></div>
<div class="ttc" id="structwickr__key__exchange_html"><div class="ttname"><a href="structwickr__key__exchange.html">wickr_key_exchange</a></div><div class="ttdoc">Public key exchange protected data. After a shared secret is generated using a public key with identi...</div><div class="ttdef"><b>Definition:</b> key_exchange.h:53</div></div>
<div class="ttc" id="structwickr__parse__result_html_a584d3b94e032f09188ee4006c067c180"><div class="ttname"><a href="structwickr__parse__result.html#a584d3b94e032f09188ee4006c067c180">wickr_parse_result::enc_payload</a></div><div class="ttdeci">wickr_cipher_result_t * enc_payload</div><div class="ttdef"><b>Definition:</b> protocol.h:271</div></div>
<div class="ttc" id="group__wickr__protocol_html_ga94154ab44a6c2e9b97a115e37416efe1"><div class="ttname"><a href="group__wickr__protocol.html#ga94154ab44a6c2e9b97a115e37416efe1">wickr_decode_result_destroy</a></div><div class="ttdeci">void wickr_decode_result_destroy(wickr_decode_result_t **result)</div></div>
<div class="ttc" id="structwickr__parse__result_html_a989166b5471898853f03b9e9c58f69c0"><div class="ttname"><a href="structwickr__parse__result.html#a989166b5471898853f03b9e9c58f69c0">wickr_parse_result::signature_status</a></div><div class="ttdeci">wickr_packet_signature_status signature_status</div><div class="ttdef"><b>Definition:</b> protocol.h:268</div></div>
<div class="ttc" id="group__wickr__protocol_html_ga1671066ddc19b38ed05d4460d5a96706"><div class="ttname"><a href="group__wickr__protocol.html#ga1671066ddc19b38ed05d4460d5a96706">wickr_parse_result_copy</a></div><div class="ttdeci">wickr_parse_result_t * wickr_parse_result_copy(const wickr_parse_result_t *source)</div></div>
<div class="ttc" id="structwickr__parse__result_html_a69a3ee332921b4fdbc0e07dbfa74a8ed"><div class="ttname"><a href="structwickr__parse__result.html#a69a3ee332921b4fdbc0e07dbfa74a8ed">wickr_parse_result::err</a></div><div class="ttdeci">wickr_decode_error err</div><div class="ttdef"><b>Definition:</b> protocol.h:267</div></div>
<div class="ttc" id="structwickr__parse__result_html"><div class="ttname"><a href="structwickr__parse__result.html">wickr_parse_result</a></div><div class="ttdoc">result from parsing an inbound packet</div><div class="ttdef"><b>Definition:</b> protocol.h:266</div></div>
<div class="ttc" id="group__wickr__protocol_html_ga3427a40815c9f65a78516405d1b88072"><div class="ttname"><a href="group__wickr__protocol.html#ga3427a40815c9f65a78516405d1b88072">wickr_packet_create_from_buffer</a></div><div class="ttdeci">wickr_packet_t * wickr_packet_create_from_buffer(const wickr_buffer_t *buffer)</div></div>
<div class="ttc" id="structwickr__buffer_html"><div class="ttname"><a href="structwickr__buffer.html">wickr_buffer</a></div><div class="ttdoc">Represents an array of bytes and the length of the allocation associated with those bytes.</div><div class="ttdef"><b>Definition:</b> buffer.h:51</div></div>
<div class="ttc" id="group__wickr__protocol_html_ga36183bf96372661f890aefbe388bd32a"><div class="ttname"><a href="group__wickr__protocol.html#ga36183bf96372661f890aefbe388bd32a">wickr_decode_result_copy</a></div><div class="ttdeci">wickr_decode_result_t * wickr_decode_result_copy(const wickr_decode_result_t *result)</div></div>
<div class="ttc" id="group__wickr__protocol_html_gaf34d8082df52a7ade2fea54eea65d342"><div class="ttname"><a href="group__wickr__protocol.html#gaf34d8082df52a7ade2fea54eea65d342">wickr_packet_create_from_components</a></div><div class="ttdeci">wickr_packet_t * wickr_packet_create_from_components(const wickr_crypto_engine_t *engine, const wickr_cipher_key_t *header_key, const wickr_cipher_key_t *payload_key, wickr_ec_key_t *exchange_key, const wickr_payload_t *payload, const wickr_node_array_t *recipients, const wickr_identity_chain_t *sender_signing_identity, uint8_t version)</div></div>
<div class="ttc" id="structwickr__decode__result_html_aed31d598b49bf696f286d673246d8b31"><div class="ttname"><a href="structwickr__decode__result.html#aed31d598b49bf696f286d673246d8b31">wickr_decode_result::payload_key</a></div><div class="ttdeci">wickr_cipher_key_t * payload_key</div><div class="ttdef"><b>Definition:</b> protocol.h:336</div></div>
<div class="ttc" id="structwickr__cipher_html"><div class="ttname"><a href="structwickr__cipher.html">wickr_cipher</a></div><div class="ttdoc">Represents a cipher that can be used in the crypto_engine. This meta object holds parameters for the ...</div><div class="ttdef"><b>Definition:</b> cipher.h:56</div></div>
<div class="ttc" id="structwickr__node_html"><div class="ttname"><a href="structwickr__node.html">wickr_node</a></div><div class="ttdoc">Represents a message destination at a point in time.</div><div class="ttdef"><b>Definition:</b> node.h:67</div></div>
<div class="ttc" id="structwickr__ecdsa__result_html"><div class="ttname"><a href="structwickr__ecdsa__result.html">wickr_ecdsa_result</a></div><div class="ttdoc">Elliptic Curve Digital Signature Algorithm Result.</div><div class="ttdef"><b>Definition:</b> ecdsa.h:54</div></div>
<div class="ttc" id="structwickr__decode__result_html_a0c6e2140859e7d8ad113f1e7ebd95ad4"><div class="ttname"><a href="structwickr__decode__result.html#a0c6e2140859e7d8ad113f1e7ebd95ad4">wickr_decode_result::decrypted_payload</a></div><div class="ttdeci">wickr_payload_t * decrypted_payload</div><div class="ttdef"><b>Definition:</b> protocol.h:337</div></div>
<div class="ttc" id="group__wickr__protocol_html_ga0c95ad86819bacf98c11115d748039db"><div class="ttname"><a href="group__wickr__protocol.html#ga0c95ad86819bacf98c11115d748039db">wickr_packet_copy</a></div><div class="ttdeci">wickr_packet_t * wickr_packet_copy(const wickr_packet_t *source)</div></div>
<div class="ttc" id="structwickr__key__exchange__set_html"><div class="ttname"><a href="structwickr__key__exchange__set.html">wickr_key_exchange_set</a></div><div class="ttdoc">A collection of key exchanges for a set of recipients. The data protected inside 'exchange_ciphertext...</div><div class="ttdef"><b>Definition:</b> key_exchange.h:169</div></div>
<div class="ttc" id="group__wickr__protocol_html_gab15d7556ad2806aa823ec2d3e3bf5a46"><div class="ttname"><a href="group__wickr__protocol.html#gab15d7556ad2806aa823ec2d3e3bf5a46">wickr_packet_destroy</a></div><div class="ttdeci">void wickr_packet_destroy(wickr_packet_t **packet)</div></div>
<div class="ttc" id="structwickr__packet_html_a8b5e9a4eed6f133ffedd1aa9178b5567"><div class="ttname"><a href="structwickr__packet.html#a8b5e9a4eed6f133ffedd1aa9178b5567">wickr_packet::signature</a></div><div class="ttdeci">wickr_ecdsa_result_t * signature</div><div class="ttdef"><b>Definition:</b> protocol.h:191</div></div>
<div class="ttc" id="group__wickr__protocol_html_ga2b967bbdd161d8e37d19c4ab9621771b"><div class="ttname"><a href="group__wickr__protocol.html#ga2b967bbdd161d8e37d19c4ab9621771b">wickr_key_exchange_create_with_data</a></div><div class="ttdeci">wickr_key_exchange_t * wickr_key_exchange_create_with_data(const wickr_crypto_engine_t *engine, const wickr_identity_chain_t *sender, const wickr_node_t *receiver, wickr_ec_key_t *packet_exchange_key, const wickr_buffer_t *data_to_wrap, wickr_cipher_t exchange_cipher, const wickr_buffer_t *psk, uint8_t version)</div></div>
<div class="ttc" id="structwickr__packet_html_a35c17c926c267a603e810b88961c2bf3"><div class="ttname"><a href="structwickr__packet.html#a35c17c926c267a603e810b88961c2bf3">wickr_packet::version</a></div><div class="ttdeci">uint8_t version</div><div class="ttdef"><b>Definition:</b> protocol.h:189</div></div>
<div class="ttc" id="structwickr__parse__result_html_ab33e5d00121c229280bbee814ca7ef5a"><div class="ttname"><a href="structwickr__parse__result.html#ab33e5d00121c229280bbee814ca7ef5a">wickr_parse_result::key_exchange</a></div><div class="ttdeci">wickr_key_exchange_t * key_exchange</div><div class="ttdef"><b>Definition:</b> protocol.h:270</div></div>
<div class="ttc" id="structwickr__cipher__result_html"><div class="ttname"><a href="structwickr__cipher__result.html">wickr_cipher_result</a></div><div class="ttdef"><b>Definition:</b> cipher.h:97</div></div>
<div class="ttc" id="structwickr__packet_html"><div class="ttname"><a href="structwickr__packet.html">wickr_packet</a></div><div class="ttdoc">An encrypted packet made with the Wickr protocol.</div><div class="ttdef"><b>Definition:</b> protocol.h:188</div></div>
<div class="ttc" id="group__wickr__protocol_html_ga706d39419c8991f417f37f556cee8df9"><div class="ttname"><a href="group__wickr__protocol.html#ga706d39419c8991f417f37f556cee8df9">wickr_parse_result_destroy</a></div><div class="ttdeci">void wickr_parse_result_destroy(wickr_parse_result_t **result)</div></div>
<div class="ttc" id="group__wickr__protocol_html_gaa983fe863635b69d69d6d86d01443ecf"><div class="ttname"><a href="group__wickr__protocol.html#gaa983fe863635b69d69d6d86d01443ecf">wickr_packet_serialize</a></div><div class="ttdeci">wickr_buffer_t * wickr_packet_serialize(const wickr_packet_t *packet)</div></div>
<div class="ttc" id="group__wickr__protocol_html_ga32d9da2e10d1d653b2ac894d50aaedb0"><div class="ttname"><a href="group__wickr__protocol.html#ga32d9da2e10d1d653b2ac894d50aaedb0">wickr_decode_result_from_parse_result</a></div><div class="ttdeci">wickr_decode_result_t * wickr_decode_result_from_parse_result(const wickr_packet_t *packet, const wickr_crypto_engine_t *engine, const wickr_parse_result_t *parse_result, wickr_buffer_t *receiver_dev_id, wickr_ec_key_t *receiver_decode_key, wickr_identity_chain_t *receiver_signing_identity, const wickr_identity_chain_t *sender_signing_identity)</div></div>
<div class="ttc" id="structwickr__cipher__key_html"><div class="ttname"><a href="structwickr__cipher__key.html">wickr_cipher_key</a></div><div class="ttdef"><b>Definition:</b> cipher.h:189</div></div>
<div class="ttc" id="group__wickr__protocol_html_ga2bd6f49ed993d2290aaafa514eba43ed"><div class="ttname"><a href="group__wickr__protocol.html#ga2bd6f49ed993d2290aaafa514eba43ed">wickr_decode_result_create_failure</a></div><div class="ttdeci">wickr_decode_result_t * wickr_decode_result_create_failure(wickr_decode_error decode_error)</div></div>
<div class="ttc" id="structwickr__payload_html"><div class="ttname"><a href="structwickr__payload.html">wickr_payload</a></div><div class="ttdoc">The encrypted body content of a Wickr packet.</div><div class="ttdef"><b>Definition:</b> payload.h:46</div></div>
<div class="ttc" id="group__wickr__protocol_html_ga633aaf4cb6159be0110401f06dae458c"><div class="ttname"><a href="group__wickr__protocol.html#ga633aaf4cb6159be0110401f06dae458c">wickr_decode_result_create_success</a></div><div class="ttdeci">wickr_decode_result_t * wickr_decode_result_create_success(wickr_payload_t *decrypted_payload, wickr_cipher_key_t *payload_key)</div></div>
<div class="ttc" id="group__wickr__protocol_html_ga1654ef299f9189b27e5e58485f1ffcf5"><div class="ttname"><a href="group__wickr__protocol.html#ga1654ef299f9189b27e5e58485f1ffcf5">wickr_parse_result_from_packet</a></div><div class="ttdeci">wickr_parse_result_t * wickr_parse_result_from_packet(const wickr_crypto_engine_t *engine, const wickr_packet_t *packet, const wickr_buffer_t *receiver_node_id, wickr_header_keygen_func header_keygen_func, const wickr_identity_chain_t *sender_signing_identity)</div></div>
<div class="ttc" id="structwickr__packet_html_a4d17d017c9d0fbb6e748a7ed935e5512"><div class="ttname"><a href="structwickr__packet.html#a4d17d017c9d0fbb6e748a7ed935e5512">wickr_packet::content</a></div><div class="ttdeci">wickr_buffer_t * content</div><div class="ttdef"><b>Definition:</b> protocol.h:190</div></div>
<div class="ttc" id="group__wickr__protocol_html_gac2673bcfeae2f8d693e523809bb6bb30"><div class="ttname"><a href="group__wickr__protocol.html#gac2673bcfeae2f8d693e523809bb6bb30">wickr_parse_result_create_failure</a></div><div class="ttdeci">wickr_parse_result_t * wickr_parse_result_create_failure(wickr_packet_signature_status signature_status, wickr_decode_error error)</div></div>
<div class="ttc" id="structwickr__identity__chain_html"><div class="ttname"><a href="structwickr__identity__chain.html">wickr_identity_chain</a></div><div class="ttdoc">Represents a root -&gt; node relationship as well as it's signature status.</div><div class="ttdef"><b>Definition:</b> identity.h:110</div></div>
<div class="ttc" id="structwickr__crypto__engine_html"><div class="ttname"><a href="structwickr__crypto__engine.html">wickr_crypto_engine</a></div><div class="ttdoc">Interface to a set of cryptographic operations used throughout the library. Currently the default imp...</div><div class="ttdef"><b>Definition:</b> crypto_engine.h:53</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
